package com.anyou.mall.goo.param;

import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "套餐新增参数 对象")
public class AddGoodsSuitParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品套餐编号，修改必须填", required = false)
    private Long goodsSuitId;

    @NotBlank
    @ApiModelProperty(value = "套装名称", required = true)
    private String suitName;

    @NotNull
    @ApiModelProperty(value = "商家编号", required = true)
    private Long storeId;

    @NotNull
    @ApiModelProperty(value = "汽配商编号", required = true)
    private Long carPartsShopId;

    @NotNull
    @ApiModelProperty(value = "商品数量", required = true)
    private Long goodsCount;

    /** 销售价格 */
    @ApiModelProperty(value ="套装价格", required = true)
    @Excel(name = "套装价格")
    private BigDecimal suitPrice;

    @NotBlank
    @ApiModelProperty(value = "上架状态：0 -> 已上架；1 -> 下架", required = true)
    private String shelfStatus;

    @NotBlank
    @ApiModelProperty(value = "套装商品列表", required = true)
    private List<AddGoodsSuitPlanParam> suitPlan;
}
